

<script language="javascript">
var xmlHttp

function showKab(str)
{
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  }
	var url="<?php echo site_url().'account/ajax_showKab'?>";
	
	url=url+"/"+str;
	//url=url+"&sid="+Math.random();
	//alert(url);

	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged()
{
if (xmlHttp.readyState==4)
{
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
//alert(document.getElementById("txtHint").innerHTML);
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
</script> 

<script type="text/javascript">
var xmlHttp

function showHint(str)
{
if (str.length==0)
  { 
  document.getElementById("txtHint").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Browser anda tidak support AJAX!");
  return;
  } 
var url="gethint.php";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
</script>

<div id="in_konten">
<div class="flowNav"><p><?php echo $cumb;?></p></div>                         
<h2><?php echo $title;?></h2>
	<p class="details">
	Silahkan anda melakukan registrasi dengan memasukan data diri anda dengan benar
	</p>
		<form action="" method="post" onsubmit="return check();">
           	<table width="250" border="0" cellpadding="0" cellspacing="0" class="shoppingTable">
              <tr>
                <td width="40"><strong>Nama</strong></td>
                <td width="2"><strong>:</strong></td>
                <td width="350">
				<?php echo form_error('nama', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="nama" value="<?php echo set_value('nama'); ?>">
				</td>
              </tr>
              <tr>
                <td><strong>Jenis Kelamin</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('jenkel', '<div class="error">', '</div>'); ?>
				<?php echo jenkelDropdown(set_value('jenkel'));?>
				<br /><br />
				</td>
              </tr>
              <tr>
                <td><strong>Email</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('email', '<div class="error">', '</div>'); ?>
				<?php echo $no_email;?>
				<input type="text" class="contact_input" id="emailnya" name="email" value="<?php echo set_value('email'); ?>">
				
				</td>
              </tr>
              <tr>
                <td><strong>Password</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('password', '<div class="error">', '</div>'); ?>
				<input type="password" class="contact_input"  name="password" value="">
				</td>
              </tr>
              <tr>
                <td><strong>Ulangi Password</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('repassword', '<div class="error">', '</div>'); ?>
				<input type="password" class="contact_input" name="repassword" value="">
				</td>
              </tr>
              <tr>
                <td><strong>Telepon</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('telp', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="telp" value="<?php echo set_value('telp'); ?>">
				</td>
              </tr>
              <tr>
                <td><strong>Mobile Phone/HP</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('hp', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="hp" value="<?php echo set_value('hp'); ?>">
				</td>
              </tr>
              <tr>
                <td><strong>Alamat</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('alamat', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="alamat" value="<?php echo set_value('alamat'); ?>">
				</td>
              </tr>
              <tr>
                <td><strong>Propinsi</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('prov_id', '<div class="error">', '</div>'); ?>
				<?php echo provDropdown(set_value('prov_id'))?>
				<br /><br />
				</td>
              </tr>
              <tr>
                <td><strong>Kabupaten</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('kab_id', '<div class="error">', '</div>'); ?>
				<div id="txtHint">
					<?php echo kabDropdown(set_value('prov_id'),set_value('kab_id'));?>
				</div>
				<br />
				</td>
              </tr>
              <tr>
                <td><strong>Kota</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('kota', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="kota" value="<?php echo set_value('kota'); ?>">
				</td>
              </tr>
              <tr>
                <td><strong>Kode Pos</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('kodepos', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="kodepos" value="<?php echo set_value('kodepos'); ?>">
				</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td><img src="<?php echo base_url()?>application/views/php_captcha.php" /></td>
              </tr>
              <tr>
                <td><strong>Masukan Kode</strong></td>
                <td><strong>:</strong></td>
                <td>
				<?php echo form_error('number', '<div class="error">', '</div>'); ?>
				<?php echo $wrong_chapta;?>
				<input class="contact_input" name="number" type="text" id="number" />
				</td>
              </tr>
            </table>
			<div class="form_row">
				<div class="terms">
					<?php echo form_error('terms', '<div class="error">', '</div>'); ?>
					<input type="checkbox" name="terms" />
					I agree to the <a href="#info" style="color:#5F5F5F;text-decoration:underline;" rel="facebox">terms &amp; conditions</a> 
					<?php echo getTerms('terms');?>
				</div>
			</div> 
			
			<div class="form_row">
				<input type="submit" class="register" value="Register" />
			</div>   
		</form>        
</div>	
<br />
<br />


